#include<iostream>
#include<gtest/gtest.h>
/*
    ASSERT - 断言失败就直接强制退出
    EXPECT - 断言失败继续往下执行
    单元测试需要在特定的宏内执行
*/
TEST(test,greate_than)
{
    int age = 20;
    ASSERT_GT(age,18);
    std::cout<<"OK"<<std::endl;
}
TEST(test,less_than)
{
    int age = 20;
    EXPECT_LT(age,18);
    std::cout<<"OK"<<std::endl;
}

int main(int argc,char *argv[])
{
    testing::InitGoogleTest(&argc,argv);
    return RUN_ALL_TESTS();

}